package com.imooc.sell.from;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @Author 小柯
 * @Date 2019/7/7  12:04
 **/
@Data
public class OrderFrom {
    /**
     * 买家姓名
     */
    @NotEmpty(message = "姓名必填")
    private String name ;


    /**
     * 买家手机号
     */
    @NotEmpty(message = "手机号必填写必填")
    private String phone ;


    /**
     * 买家地址
     */
    @NotEmpty(message = "地址必填写")
    private String address;


    /**
     * 买家openid
     */
    @NotEmpty(message = "openid必填写")
    private String openid;

    /**
     * 买家购物车
     */
    @NotEmpty(message = "购物车不能为空")
    private String items;

}
